/**
 * 中间件，挂载方式
 * use
 * 路由方式
 */
const express = require('express');
const app = express();

app.get('/abc', (req, res, next) => {
    console.log(1);
    //跳转到下一个路由
    next('route');
}, (req, res) => {
    console.log(2);
    res.send('abc');
});

app.get('/abc', (req, res) => {
    console.log(3);
    res.send('hello');
})

app.listen(3000, () => {
    console.log('running.......');
})